<head>
    <jsp:directive.include
            file="/WEB-INF/jsp/prelude/include-head-meta.jspf"/>
    <title>My Home Page</title>
</head>
<body>
<div class="container-lg">
    <!-- Content here -->
    Hello,World 2021
    <hr>
    <span id="context"></span>
</div>
</body>
<script>
    $(document).ready(function () {
        $.ajax({
            url: "/user",
            type: "GET",
            dataType: "json",
            success: function (data) {
                // console.log(data);
                // console.log($('#context'));
                $('#context').text(JSON.stringify(data));
            }
        });
    });
</script>